<!DOCTYPE html>
<html lang="en">

<head>
    <base target='_blank'>
    <meta charset="UTF-8">
    <meta name="renderer" content="webkit">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http -equiv="X-UA-Compatible" content="ie=edge">
    <link href="{THEME_PATH}party/style/style.css" type="text/css" rel="styleSheet">
    <link href="{THEME_PATH}party/style/slider-x.css" type="text/css" rel="styleSheet">
    <script src="{THEME_PATH}party/js/all.js"></script>
    <script src="{THEME_PATH}party/js/jquery.min.js"></script>
    <link href="{THEME_PATH}party/style/index.css" type="text/css" rel="styleSheet">
    <script src="{THEME_PATH}party/layui/layui.js"></script>
    <script src="{THEME_PATH}party/layui/html5media.min.js"></script>
    <link href="{THEME_PATH}party/layui/css/layui.css" type="text/css" rel="styleSheet">
    <link href="{THEME_PATH}party/style/idangerous.swiper.css" type="text/css" rel="styleSheet">
    <title>{$meta_title}</title>
</head>

<body>

    <script src="{THEME_PATH}party/js/jquery.min.js"></script>

    <div class="head">
        <div class="layui-carousel" id="test1">
            <div carousel-item>
                {navigator type=0}
                <div><img src="{dr_get_file($t.thumb)}" alt="" style=" width: 100%;
    height: auto;
    max-height: 100%;"></div>
                {/navigator}
            </div>
        </div>
        <div class="time-search">
            <div class="time" id="time">
            </div>
            <div class="search-box">
                <form action="/index.php" method="get" style="width: 100%; margin: 15px auto">
                    <input type="hidden" name="c" value="api">
                    <input type="hidden" name="m" value="search">
                    <input type="hidden" name="dir" id="dr_search_module_dir" style="float: left;"> 站内搜索:
                    <select style="margin: 0 5px 0 5px; width: 70px;
    height: 24px;">
                        {php $top_search=[];}
                        {cache name=module}
                        {if !$t.setting.search.close}
                        {php !$top_search && $top_search=$t;}
                        <option id="dr_search_module_name" name="cat" value="" selected="selected">
                            <li><a href="javascript:dr_search_module_select('{$t.dirname}', '{$t.name}');">
                                    {$t.name} </a></li>
                        </option>
                        {/if}
                        {/cache}
                    </select>

                    <div class="search">
                        <input type="text" placeholder="输入关键字" name="keyword">
                        <div class="search-btn">
                            <button type="submit" class="search-btn">搜索</button>
                        </div>
                    </div>
                    <script>
                        // 这段js是用来执行搜索的
                        function dr_search_module_select(dir, name) {
                            $("#dr_search_module_dir").val(dir);
                            $("#dr_search_module_name").html(name + ' <i class="fa fa-angle-down"></i>');
                        }
                        dr_search_module_select('{php echo defined('
                            MOD_DIR ') ? MOD_DIR : $top_search.dirname}', '{php echo defined('
                            MODULE_NAME ') ? MODULE_NAME : $top_search.name}');
                    </script>
                </form>
            </div>
        </div>
    </div>
    <div class="nav">
        <ul>
            <a href="{SITE_URL}">
                <li>
                    网站首页
                </li>
            </a>
            {category module=news id=1,2,3,4,5,6,11 return=c}
            <a href="{$c.url}">
                <li>
                    {$c.name}
                </li>
            </a>

            {/category}
        </ul>
    </div>
    <div class="page-container layui-carousel part" id="test2">
        <div carousel-item="">
            {navigator type=5}
            <div><img src="{dr_get_file($t.thumb)}" alt="" style="width:100%; height: 100%"></div>
            {/navigator}
        </div>
    </div>